var app = getApp();

Page({
    data: {
        current: 0,
        openid: "",
        f_id: "",
        jobList:[]
    },
    onLoad: function(a) {
        var self = this,bid=a.f_id;
        self.setData({
           f_id:bid
        })
        self.getJobList(bid);
    },
    closemodal: function(t) {
        this.setData({
            ScanCard:false,
            clickEnd:false
        });
    },
    // 获取订单详情
    getJobList:function(bid){
         var self = this;
          app.util.request({
            url: "entry/wxapp/ShopDatelist",
            data: {
                openid: wx.getStorageSync("openid"),
                b_id: bid
            },
            success: function(a) {
                console.log(a.data.data), self.setData({
                    jobList: a.data.data
                });
            }
        });
    },
    getform: function(a) {
        console.log(a), app.util.request({
            url: "entry/wxapp/Formid",
            data: {
                openid: wx.getStorageSync("openid"),
                formid: a
            },
            success: function(a) {}
        });
    },
    applyDetailClick: function(a) {
        this.getform(a.detail.formId);
        var t = a.currentTarget.dataset.f_id, e = a.currentTarget.dataset.state;
        wx.navigateTo({
            url: "/hyb_jianzhi/shopjob_list/shopjob_list?f_id=" + t
        });
    },
    onShow: function() {
    },
    onShareAppMessage: function() {}
});